package com.heima.model.admin.pojos;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@NoArgsConstructor
@Data
public class AdChannel {

    @JsonProperty("createdTime")
    private String createdTime;
    @JsonProperty("description")
    private String description;
    @JsonProperty("id")
    private Integer id;
    @JsonProperty("isDefault")
    private Boolean isDefault;
    @JsonProperty("name")
    @NotNull(message = "频道名称不能为空")
    private String name;
    @JsonProperty("ord")
    @Min(value = 1,message = "排序小于1")
    @Max(value = 100,message = "排序大于100")
    private Integer ord;
    @NotNull(message = "状态异常")
    @JsonProperty("status")
    private Boolean status;
}
